import request from '@/utils/request'

export function getServicesCateList(data) {
  return request({
    url: 'member/servicesCate/getList',
    method: 'get',
		params: data
  })
}

export function getServicesList(data) {
  return request({
    url: 'member/services/getList',
    method: 'get',
		params: data
  })
}

export function getPlatformServicesList(data) {
  return request({
    url: 'member/services/getPlatformList',
    method: 'get',
		params: data
  })
}

export function getServices(data) {
  return request({
    url: 'member/services/get',
    method: 'get',
		params: data
  })
}

export function getThirdDetail(data) {
  return request({
    url: 'member/services/getThirdDetail',
    method: 'get',
		params: data
  })
}


export function updateServices(data) {
  return request({
    url: 'member/services/editSubmit',
    method: 'post',
    data
  })
}

export function shangjiaServices(data) {
  return request({
    url: 'member/services/shangjia',
    method: 'post',
    params: {ids:data}
  })
}

export function xiajiaServices(data) {
  return request({
    url: 'member/services/xiajia',
    method: 'post',
    params: {ids:data}
  })
}

export function deleteServices(data) {
  return request({
    url: 'member/services/delete',
    method: 'post',
    params: {ids:data}
  })
}


export function getServicesQualityList(data) {
  return request({
    url: 'member/servicesQuality/query',
    method: 'get',
		params: {servicesId : data}
  })
}

export function addServicesQuality(data) {
  return request({
    url: 'member/servicesQuality/add',
    method: 'post',
    data
  })
}

export function deleteServicesQuality(data) {
  return request({
    url: 'member/servicesQuality/delete',
    method: 'post',
    params: {ids:data}
  })
}


export function getStockList(data) {
  return request({
    url: 'member/services/getStockList',
    method: 'get',
		params: data
  })
}

export function updateStock(data) {
  return request({
    url: 'member/services/updateStock',
    method: 'post',
    data
  })
}

export function synStock(data) {
  return request({
    url: 'member/services/synStock',
    method: 'post',
    data
  })
}

export function getServicesRelateList(data) {
  return request({
    url: 'member/servicesRelate/getList',
    method: 'get',
		params: data
  })
}

export function addServicesRelate(data) {
  return request({
    url: 'member/servicesRelate/add',
    method: 'post',
    data
  })
}

export function updateRelateSort(data) {
  return request({
    url: 'member/servicesRelate/updateSort',
    method: 'post',
    data
  })
}

export function deleteServicesRelate(data) {
  return request({
    url: 'member/servicesRelate/delete',
    method: 'post',
    params: {ids:data}
  })
}


export function updateSeckill(data) {
  return request({
    url: 'member/seckill/editSubmit',
    method: 'post',
    data
  })
}

export function deleteSeckill(data) {
  return request({
    url: 'member/seckill/delete',
    method: 'post',
    params: {ids:data}
  })
}

export function updateGroup(data) {
  return request({
    url: 'member/group/editSubmit',
    method: 'post',
    data
  })
}

export function deleteGroup(data) {
  return request({
    url: 'member/group/delete',
    method: 'post',
    params: {ids:data}
  })
}

export function getSkuList(data) {
  return request({
    url: 'member/services/getSkuList',
    method: 'get',
		params: data
  })
}


export function getExportServicesList(data) {
  return request({
    url: 'member/services/getExportList',
    method: 'get',
		params: data
  })
}
